 <?php
class Utility {
    public static function toVND($tien){
       $rs = number_format($tien, 0)." VND";
       return $rs;
    }
    public static function getShortDate($d){
        if(d == null)
            return "";
         return $d->format("d/M/y");
    }
    public static function getRequestAttribute($attrName, $initVal){
        $attrVal = $initVal;
        if (isset($_REQUEST[$attrName])){
            if(!empty($_REQUEST[$attrName])){
                $attrVal = $_REQUEST[$attrName];
            }
        } 
        return $attrVal;
    }
}
?>